package com.cvte.vdt.uartservice.util;

import com.mediatek.tvcommon.SysPropControl;

/**
 * Created by user on 2018/12/13.
 */
public class PropUtil {
    public static String SysProp_Get(String key, String def){
        return SysPropControl.Get(key,def);
    }
    public static void SysProp_Set(String key, String val){
        SysPropControl.Set(key,val);
    }
    public static void PropInitUart1(){
        SysProp_Set("ctl.start","sys_ctl:InitUart1");
        Sleep(200);
    }
    public static void Sleep(int time){
        try {
            Thread.sleep(time);
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
